import request from '@/utils/request'

// 查询通用协议配置列表
export function listProconfigrich(query) {
  return request({
    url: '/project/proconfigrich/list',
    method: 'get',
    params: query
  })
}

// 查询通用协议配置详细
export function getProconfigrich(configurationId) {
  return request({
    url: '/project/proconfigrich/' + configurationId,
    method: 'get'
  })
}

// 新增通用协议配置
export function addProconfigrich(data) {
  return request({
    url: '/project/proconfigrich',
    method: 'post',
    data: data
  })
}

// 修改通用协议配置
export function updateProconfigrich(data) {
  return request({
    url: '/project/proconfigrich',
    method: 'put',
    data: data
  })
}

// 删除通用协议配置
export function delProconfigrich(configurationId) {
  return request({
    url: '/project/proconfigrich/' + configurationId,
    method: 'delete'
  })
}
